package com.learn.design.strategy.example;

import java.util.Map;

/**
 * 表单提交的请求
 *
 * @author Administrator
 */
public class FormSubmitRequest {

    /**
     * 提交类型
     *
     * @see FormSubmitHandler#getSubmitType()
     */
    private String submitType;

    /**
     * 用户 id
     */
    private Long userId;

    /**
     * 表单提交的值
     */
    private Map<String, Object> formInput;

    // 其他属性

    public String getSubmitType() {
        return submitType;
    }

    public FormSubmitRequest setSubmitType(String submitType) {
        this.submitType = submitType;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public FormSubmitRequest setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Map<String, Object> getFormInput() {
        return formInput;
    }

    public FormSubmitRequest setFormInput(Map<String, Object> formInput) {
        this.formInput = formInput;
        return this;
    }
}
